<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<div class="h98"></div>
<div class="bottom-nav">
    <ul>
        <li class="home ${bottomMenuId == 'home'?'cur':''}" onclick="location.href='/we/index'">
            <i class="ico"></i>
            <span>首页</span>
        </li>
        <li class="search ${bottomMenuId == 'search'?'cur':''}" onclick="location.href='/we/WeLoadClsNav'">
            <i class="ico"></i>
            <span>分类</span>
        </li>
        <%--<li class="activity ${bottomMenuId == 'activity'?'cur':''}" onclick="location.href='/wesite/view/activity/list.jsp'">--%>
            <%--<i class="ico"></i>--%>
            <%--<span>活动</span>--%>
        <%--</li>--%>
        <li class="shopping ${bottomMenuId == 'shopping'?'cur':''}" onclick="location.href='/we/weshopcart'">
            <i class="ico"></i>
            <span>购物车</span>
            <i class="num _bottomCartNum"></i>
        </li>
        <li class="my ${bottomMenuId == 'my'?'cur':''}" onclick="location.href='/we/home/index'">
            <i class="ico"></i>
            <span>我的</span>
        </li>
    </ul>
</div>
<script>
    function  tocart() {
        window.location.href="/we/order/weshopcart";
    }

    $(function () {
        $w.httpRequest({
            url:"${ctx}/order/getCartNum",
            method:"get",
            ok:function (ret) {
                if(ret.Data) {
                    $("._bottomCartNum").text(ret.Data);
                }else{
                    $("._bottomCartNum").removeClass("num");
                }
            }
        })
    })

</script>